package business.report.impl;

import business.report.TransportOperationService;
import business.report.TravelAgencyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import report.domain.TransportOperation;
import report.domain.TravelAgency;
import report.domain.TravelAgencyCriteria;
import report.mapper.TravelAgencyMapper;

import java.util.List;

/**
 * Created by SunZZ on 2016/6/19.
 */
@Service(value = "travelAgencyService")
public class TravelAgencyServiceImpl implements TravelAgencyService{
    @Autowired
    TravelAgencyMapper travelAgencyMapper;

    @Override
    public List<TravelAgency> getTravelAgency() {
        TravelAgencyCriteria criteria = new TravelAgencyCriteria();
        criteria.createCriteria().getAllCriteria();
        return travelAgencyMapper.selectByExample(criteria);
    }
}
